//
//  Header.h
//  SkyFight
//
//  Created by HoangLinh on 7/25/13.
//
//

#ifndef SkyFight_Header_h
#define SkyFight_Header_h

#include <iostream>

#include "cocos2d.h"

#include "DataAccess.h"

USING_NS_CC;

class GameLayer;

class ScreenManager
{
public:
    static ScreenManager* sharedScreenMan();

    void goHelloWorld();
    void goSinglePlay();
    
private:
    static void purgeScreenManager();
    
    ScreenManager();
    ~ScreenManager();
    
    ScreenManager(ScreenManager const&);
    ScreenManager& operator=(ScreenManager const&);

    void calculateScaleFactor();
    void go(GameLayer *gameLayer);

// properties --------------------------------------------
public:
    CCDirector *gameDirector;
    GameLayer *currentLayer;
    unsigned int scaleFactor;

private:
    static ScreenManager *_sharedInstance;
};

#endif
